package team.bailan.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import team.bailan.common.config.ReturnResponse;
import team.bailan.entity.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import team.bailan.entity.dto.UserDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author nwh
 * @since 2022-05-16
 */
@Service
@Component
public interface UserService extends IService<User> {
    ReturnResponse<String> register(UserDTO userDTO);
    ReturnResponse<String> login(HttpServletRequest request, HttpServletResponse response, @RequestBody UserDTO userDTO);
    void updateBeans(String[] usernameList, Integer[] userBeans);
}
